package com.hh128.dragonbones;
import android.view.View;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.content.Context;
import android.graphics.Color;
import android.widget.ScrollView;
import android.util.Log;
import android.widget.SeekBar;

public class TimeLineView extends ScrollView
{
    public  TimeLineView(Context ctx,AttributeSet attr)
    {
        super(ctx,attr);
    }
    public TimeLineView(Context ctx)
    {
        super(ctx);
        Log.i("添加alider","slider");
        SeekBar bar=new SeekBar(ctx);
        this.addView(bar);
      /* Slider slider=new Slider(ctx);
        slider.setLayoutParams(new LayoutParams(400,400));
        addView(slider);*/
    }
    @Override
    protected void onDraw(Canvas canvas)
    {
        super.onDraw(canvas);
        Paint paint=new Paint();
      
    }
    class Slider extends View
    {
        public Slider(Context ctx)
        {super(ctx);
        }
        public  Slider(Context ctx,AttributeSet attr)
        {
            super(ctx,attr);
        }
        @Override
        public void draw(Canvas canvas)
        {
            super.draw(canvas);
            Paint p=new Paint();
           canvas.drawColor(Color.BLACK);
        }
       
    }
}
